package com.zhentao.controller;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2024/5/6 10:05
 * @Author xdm
 **/

@Controller
public class FreemarkerTestController {

    @RequestMapping("/t1")
    public String t1(Model model){
        //1，传递一个文本数据
        model.addAttribute("name","测试使用-小明");
        //跳转到一个页面   ---拼接成01-test.ftl
        return "01-test";
    }
}